package com.caac.core.config;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright caac 2006</p>
 * <p>Company: caac</p>
 * @author <a href="mailto:project@caac.com.cn">Project Group</a>
 * @version 1.0
 */

public class MonitorSession implements Serializable {
    private String usedMemory;
    private String totalMemory;
    private String maxMemory;
    private String percentFree;
    private int activeThreadCount;

    private long currentCount;
    private long maxCount;
    private long totalCount;
    private int maxInactiveInterval;
    private Date startupTime;

    public int getActiveThreadCount() {
        return activeThreadCount;
    }

    public long getCurrentCount() {
        return currentCount;
    }

    public long getMaxCount() {
        return maxCount;
    }

    public int getMaxInactiveInterval() {
        return maxInactiveInterval;
    }

    public String getMaxMemory() {
        return maxMemory;
    }

    public String getPercentFree() {
        return percentFree;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public String getTotalMemory() {
        return totalMemory;
    }

    public String getUsedMemory() {
        return usedMemory;
    }

    public java.util.Date getStartupTime() {
        return startupTime;
    }

    public void setActiveThreadCount(int activeThreadCount) {
        this.activeThreadCount = activeThreadCount;
    }

    public void setCurrentCount(long currentCount) {
        this.currentCount = currentCount;
    }

    public void setMaxCount(long maxCount) {
        this.maxCount = maxCount;
    }

    public void setMaxInactiveInterval(int maxInactiveInterval) {
        this.maxInactiveInterval = maxInactiveInterval;
    }

    public void setMaxMemory(String maxMemory) {
        this.maxMemory = maxMemory;
    }

    public void setPercentFree(String percentFree) {
        this.percentFree = percentFree;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public void setTotalMemory(String totalMemory) {
        this.totalMemory = totalMemory;
    }

    public void setUsedMemory(String usedMemory) {
        this.usedMemory = usedMemory;
    }

    public void setStartupTime(Date startupTime) {
        this.startupTime = startupTime;
    }

    public String toString() {
        return ToStringBuilder.reflectionToString(this,
                                                  ToStringStyle.
                                                  MULTI_LINE_STYLE);
    }
}
